import { Component, OnInit, Input } from '@angular/core';
import { FormLayout } from 'ng-devui/form';

@Component({
  selector: 'app-delect',
  templateUrl: './delect.component.html',
  styleUrls: ['./delect.component.less']
})
export class DelectComponent implements OnInit {
  @Input() data: any;
  layoutDirection: FormLayout = FormLayout.Vertical;

  userName: string;

  formChange() {
    if (this.userName) {
      this.data.canConfirm(true);
    } else {
      this.data.canConfirm(false);
    }
  }

  constructor() { }

  ngOnInit(): void {
  }
}
